* variables.texi (File Local Variables): More hack-local-variables details.
authorGlenn Morris <rgm@gnu.org>
Thu, 26 May 2011 16:20:21 +0000 (09:20 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 26 May 2011 16:20:21 +0000 (09:20 -0700)
doc/lispref/ChangeLog
doc/lispref/variables.texi

index 4d4b58cd914bba5d82446d3c2c442525476d9139..07eeb3a1120530f109770e138d5d720b085eca48 100644 (file)
@@ -2,6 +2,7 @@
 
        * variables.texi (File Local Variables):
        Update hack-local-variables `mode-only' return value.
+       Add some more details on what this function does in the other case.
 
 2011-05-19  Glenn Morris  <rgm@gnu.org>
 
index 7a8536933dc0e9ea94667a8199a4f36ea419f008..08712466b5cadfa4375cda4a7c0b07199c989194 100644 (file)
@@ -1670,7 +1670,10 @@ This function works by walking the alist stored in
 @code{file-local-variables-alist} and applying each local variable in
 turn.  It calls @code{before-hack-local-variables-hook} and
 @code{hack-local-variables-hook} before and after applying the
-variables, respectively.
+variables, respectively.  It only calls the before-hook if the alist
+is non-@code{nil}; it always calls the other hook.  This
+function ignores a @samp{mode} element if it specifies the same major
+mode as the buffer already has.
 
 If the optional argument @var{mode-only} is non-@code{nil}, then all
 this function does is return a symbol specifying the major mode,